package com.jade.framework.web.security;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 检查权限的Annotation.
 *
 * @author Daisy
 * @version 1.0 14-10-7 下午5:04
 */
@Retention (RetentionPolicy.RUNTIME)
@Target ({ElementType.METHOD})
public @interface CheckPermission
{
    public static int MODE_AND = 0;
    public static int MODE_OR = 1;

    String[] permission() default {};

    int mode() default 0;
}
